<template>
	<view class="padding-top-30">
		<view style="background-color: #FFFFFF;" class="margin-top-20">
			<view class="display-flex space-between alig" style="padding: 20rpx 34rpx;">
				<view class="display-flex file-1 alig">
					<view class="font-size-26 margin-right-20">
						兑换码
					</view>
					<input type="text" value="" class="font-size-24" placeholder="请输入CDK" />
				</view>
			</view>
		</view>
		<view class="display-flex center margin-top-120">
			<view class="button" style="padding: 24rpx 308rpx;" @click="submit">
				确认兑换
			</view>
		</view>
		
		
		<popupBox ref="toast" :isSlot="true">
			<view class="toast-box">
				<image :src="$img_path('/course/pay_s.png')" mode="widthFix"></image>
				<view class="text">
					您已成功更换绑定手机号
				</view>
				<view class="tip">
					已下发至我的优惠券
				</view>
			</view>
		</popupBox>
	</view>
</template>

<script>
	import popupBox from '../../../components/popup/popup.vue';
	export default {
		components: {
			popupBox
		},
		data() {
			return {
				
			}
		},
		methods: {
			
			submit(){
				this.$refs.toast.open()
			}
		}
	}
</script>

<style lang="scss" scoped>
.toast-box{
		width: 650rpx;
		height: 524rpx;
		background-color: #FFFFFF;
		border-radius: 40rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		image{
			width: 200rpx;
			height: 200rpx;
		}
		.text{
			font-weight: bold;
			font-size: 36rpx;
			color: #333333;
			line-height: 50rpx;
			margin-top: 40rpx;
		}
		.tip{
			font-weight: bold;
			font-size: 30rpx;
			color: #333333;
			line-height: 42rpx;
			margin-top: 18rpx;
		}
	}
</style>
